package com.jrx.anytxn.customer.service;

import com.jrx.anytxn.common.exception.TxnException;
import com.jrx.anytxn.customer.dto.customer.CustomerRes;
import com.jrx.anytxn.customer.entity.CmCustomerRightInfo;
import com.jrx.anytxn.customer.entity.TlCouponDetail;
import com.jrx.anytxn.param.entity.PrRightsAndInterests;

public interface ICouponMeaasgeService {

    /**
     * 生成优惠券汇总信息
     *
     * @param tenantId
     * @param orgId
     * @param fileName
     * @param number
     * @param uploadStatus
     * @param userName
     */
    void buildCouponSummary(Long sumId ,String tenantId, String orgId, String fileName, int number, String uploadStatus, String userName) throws TxnException;


    /**
     * 生成优惠券明细信息
     *
     * @param cmCustomerRightInfo
     * @param customerRes
     * @param rightsAndInterests
     * @param summaryId
     * @return
     * @throws TxnException
     */
    TlCouponDetail buildCouponDetail(CmCustomerRightInfo cmCustomerRightInfo, CustomerRes customerRes, PrRightsAndInterests rightsAndInterests, Long summaryId) throws TxnException;

}
